package com.cbgolf.oa.net;

/**
 * @author Created by lq on 2017/8/24.
 */

public class WebAPI {

  /**
   * 线上IP
   */
//  public static String IP = "api.cbgolf.cn";
  /**
   * 测试IP
   */
  public static String IP = "test.cbgolf.cn";
  /**
   * 测试IP
   */
  public static final String TEST_IP = "test.cbgolf.cn";
  /**
   * 线上IP
   */
  public static final String ONLINE_IP = "api.cbgolf.cn";
  /**
   * 刘ip
   */
//    public static String IP = "192.168.111.182:8080";
  /**
   * 冰哥ip
   */
//  public static String IP = "192.168.111.179:8080";

  //正式
  public static String API = "http://" + IP + "/backend";
  //sms
  //version
  public static String version_get = API + "/api/app/version";
  // login
  public static String pwd_rsa_get = API + "/api/app/permit/encryptions";

  public static String login_post = API + "/api/c/authenticate";

  //pwd
  public static String pwd_modify_put = API + "/api/c/users/modifyPwd";//*/{identifier}

  /**
   * userinfo
   */
  public static String user_info_get = API + "/api/c/users/currentUsers";
  //统计
  //营业点列表
  public static String outletList_get = API + "/api/c/outletTotal/outletList";
  //营业点统计
  public static String outletTotal_get = API + "/api/c/outletTotal";
  //预订人数统计
  public static String book_statistics_get = API + "/api/c/reserveTotal";
  //球僮统计查询---按天
  public static String caddie_statistics_day_get = API + "/api/c/caddies/playTimes/day";
  //球僮统计查询---按月
  public static String caddie_statistics_month_get = API + "/api/c/caddies/playTimes/month";
  //球僮统计查询---按季
  public static String caddie_statistics_quarter_get = API + "/api/c/caddies/playTimes/quarter";
  //球僮统计查询---按周
  public static String caddie_statistics_week_get = API + "/api/c/caddies/playTimes/week";
  //球僮统计查询---按年
  public static String caddie_statistics_year_get = API + "/api/c/caddies/playTimes/year";


  /**
   * 打球统计人数统计
   * get
   * startTime:query
   * endTime:query
   */
  public static String statistics_player_get = API + "/api/c/customerTotal";
  /**
   * 打球人 统计列表
   * get
   * startTime:query
   * endTime:query
   */
  public static String statistics_player_list_get = API + "/api/c/customerTotal/identifyList";
  /**
   * 打球人 信息
   * get
   * path:{identity}
   */
  public static String statistics_player_info_get = API + "/api/c/customerTotal/";

  /**
   * 营业点支付方式 统计列表
   * get
   * startTime:query
   * endTime:query
   * payCode:query
   * code:query
   */
  public static String statistics_payway_list_get = API + "/api/c/outletTotal/outletTotalList";
  /**
   * 预定统计 线上线下 统计列表
   * get
   * startTime:query
   * endTime:query
   * payCode:query
   * code:query
   */
  public static String statistics_book_list_get = API + "/api/c/reserveTotal/lineList";
  /**
   * 预定统计 预定客户信息
   * get
   * path:{id}
   */
  public static String statistics_book_details_get = API + "/api/c/reserveTotal/";
  /**
   * 签单统计列表
   * get
   * profix:query--Week,Month,Year
   * day:query-
   * signingId:query
   */
  public static String statistics_bill_list_get = API + "/api/c/signing/signingRecords/list";

  /**
   * 根据当前登录的用户查询球僮及打球人信息
   * get
   */
  public static String statistics_park_worker_caddie_get = API + "/api/c/customers/caddies";

  /**
   * 查询在场的球僮
   * get
   */
  public static String statistics_park_caddie_get = API + "/api/c/customers/caddieInfo";
  /**
   * 查询在用的球车
   * get
   */
  public static String statistics_park_car_get = API + "/api/c/customers/courseCars";

  /**
   * 查询球场的teeTime和相关打球人登记情况
   * get
   */
  public static String statistics_park_player_reg_details_get = API + "/api/c/customers/live";
  /**
   * 查询球童出场明细
   * get
   * path:{caddieId}
   */
  public static String statistics_caddie_details_get = API + "/api/c/caddies/playTimesDetail/";
  /**
   * 根据userId查询球僮及打球人信息
   * get
   * path:{userId}
   */
  public static String userinfo_select_get = API + "/api/c/customers/caddies/";

  //权限
  /**
   * 我的权限
   */
  public static String my_permissions_select_get = API + "/api/c/my/menus";
  //权限审批查询
  public static String permission_select_get = API + "/api/c/approvals";
  //权限审批允许拒绝
  public static String permission_allow_or_refuse_put = API + "/api/c/approvals";///{identity}
  //权限审批历史
  public static String permission_history_get = API + "/api/c/approvals/approval";


  //消息
  //推送消息
  public static String send_msg_post = API + "/api/c/messages";
  //推送消息查询
  public static String msg_select_get = API + "/api/c/messages";
  //身份查询
  public static String user_type_get = API + "/api/c/identities";
  //删除消息
  public static String msg_del_delete = API + "/api/c/messages";// /{identity}
  //修改消息
  public static String msg_edit_put = API + "/api/c/messages";// /{identity}
  //优惠券
  //优惠券查询
  public static String coupons_select_get = API + "/api/c/coupons";
  //创建优惠券
  public static String coupons_create_post = API + "/api/c/coupons";// */{identity}
  //发布优惠券
  public static String coupons_push_post = API + "/api/c/coupons";//* /{identifier}/push
  //禁用优惠券
  public static String coupons_disable_delete = API + "/api/c/coupons";//* /{identifier}/receivable
  //删除优惠券
  public static String coupons_del_delete = API + "/api/c/coupons";//* /{identifier
  //查询申请发布的球场审核人
  public static String coupons_apply_user_select_get =
      API + "/api/c/coupons/approve/user";//* /{identifier
  //优惠券申请发布
  public static String coupons_apply_push_post = API + "/api/c/coupons";//* /{identifier}/approve
  //优惠券发放历史
  public static String coupons_history_get = API + "/api/c/coupons/history";


  //球场实况
  //球场实况查询
  public static String park_details_select_get = API + "/api/c/teeTimes/courseCondition";
  //teetime
//  public static String teetime_get = API + "/api/c/teeTimes/course";  ///{courseId}
  /**
   * 查询球场的teeTime(OA简易预订)
   * get
   */
  public static String teetime_get = API + "/api/c/teeTimes/oa/simpleInfos";  ///{courseId}
  /**
   * 简易创建OA的teeTime预订
   * post
   * path:{teeTimeId}
   */
  public static String teetime_book_post = API + "/api/c/teeTimeReserves/simpleForOa/";  ///{courseId}
  /**
   * 简易OA的teeTime删除
   * delete
   * path:{teeTimeId}
   */
  public static String teetime_book_delete = API + "/api/c/teeTimeReserves/simpleForOa/";  ///{courseId}


  //  public static String teetime_get = "backend/api/c/teeTimes/course";  ///{courseId}
  //记分卡
  //查询球场分区
  public static String park_coures_select_get = API + "/api/c/teeTimeScore/coursePar";
  //查询teetime-根据球场分区
  public static String teetime_select_get = API + "/api/c/teeTimeScore/leaveInfoTeeTimes";
  //查询组信息
  public static String teetime_groupinfo_select_get =
      API + "/api/c/teeTimeScore/groupInfo";///{teeTimeId}
  //记录选择的组员信息
  public static String record_groupinfo_put = API + "/api/c/teeTimeScore/customerInfos";
  //分组成绩查询(洞对应人数-球场)
  public static String groupinfo_post = API + "/api/c/teeTimeScore/teeTimeGrades";
  //分组成绩填写成绩，不区分修改还是新增
  public static String group_result_and_or_modify_put =
      API + "/api/c/teeTimeScore/changeCompetitionGrade";
  //查询计分历史
  public static String score_history_get = API + "/api/c/teeTimeScore/scoreHistory";

  //开单
  //根据营业点编码获取商品
  public static String shop_list_get = API + "/api/c/shopOrders/goods";//+ /{outletCode};
  //根据消费卡查询当前消费人
  public static String shop_cardnum_select_get =
      API + "/api/c/shopOrders/customer";//+ /{consumerCarNo}
  //确认开单
  public static String kandai_post = API + "/api/c/shopOrders";
  //根据开单ID查询开单详细及消费项
  public static String order_details_get = API + "/api/c/shopOrders/orders";///{consumerOrderId
  //根据营业点、开单人账号、开单日期、消费卡查询消费单列表
  public static String billing_history_post = API + "/api/c/shopOrders/orders";//

  //签单
  //查询账单

  public static String order_list_get = API + "/api/c/comsumerItems";
  //根据客户id查询消费项信息
  public static String account_details_get = API + "/api/c/casher/customer";///{customerId}
  //签单人列表
  public static String billuser_list_get = API + "/api/c/signing";
  //按周查询签单记录
  public static String billdata_select_byweek_get = API + "/api/c/signing/signingRecords/week";
  //按月查询签单记录
  public static String billdata_select_bymonth_get = API + "/api/c/signing/signingRecords/month";
  //按年查询签单记录
  public static String billdata_select_byyear_get = API + "/api/c/signing/signingRecords/year";
  //获取球场前缀
  public static String park_search_get = API + "/api/c/permit/courseUserAcount/userAcount";

  /**
   * 订单列表查询
   * get
   * query:orderClassification 订单类型  (见rderManagerO)
   * orderStat(见rderManagerO)
   * pageSize 15
   * currentPage 0
   */
  public static String order_all_list_get = API + "/api/c/orders/oa/orders";
  /**
   * 获取订单详细信息
   * get
   * path {identifier}
   */
  public static String order_details_single_get = API + "/api/c/orders/oa/order/";
  /**
   * 获取比赛订单详细信息
   * get
   * path {identifier}
   */
  public static String order_details_match_single_get = API + "/api/c/orders/oa/playOrder/";
  /**
   * 手动确认酒店订单
   * put
   * path  {orderId}
   */
  public static String order_hotel_confirm_put = API + "/api/c/orders/order/hotel/";
  /**
   * 取消酒店订单
   * delete
   * path  {orderId}
   */
  public static String order_hotel_cancel_delete = API + "/api/c/orders/order/hotel/";

  /**
   * 手动确认住打套餐订单
   * put
   * path  {orderId}
   */
  public static String order_combo_confirm_put = API + "/api/c/orders/order/liveToPlay/";
  /**
   * 取消住打套餐订单
   * delete
   * path  {orderId}
   */
  public static String order_combo_cancel_delete = API + "/api/c/orders/order/liveToPlay/";

  /**
   * websocket
   * path  {userid}
   */
//  public static String web_socket = "/backend/queue/messageNotify/";
  public static String web_socket = "/backend/messages/websocket";
  /**
   * 查询某类型所有消息
   * get
   * query:messageType:消息类型,(GROUPTEETIME:团队预订,CHANGEREGISTER:修改登记)
   */
  public static String message_all_get = API + "/api/c/message/messages";
  /**
   * 查询某条消息
   * get
   * path:{identifier}:消息id
   */
  public static String message_details_get = API + "/api/c/message/message/";

  /**
   * 查询球道设置信息
   * get
   */
  public static String park_map_latlon_get = API + "/api/c/courses/fairway";

  /**
   * 验证酒店订单,住打套餐,团队预定，teetime预定，比赛预定(oa) 验证码
   * post
   */
  public static String order_confirm_post = API + "/api/c/orders/order/all/code";

  /**
   * 封场列表
   * get
   */
  public static String close_park_list_get = API + "/api/c/closures";

  /**
   * 取消封场
   * put
   * path:{id}
   */
  public static String close_park_cancel_put = API + "/api/c/closures/";
  /**
   * 新建封场
   * post
   */
  public static String close_park_create_post = API + "/api/c/closures";
  /**
   * 更新封场
   * put
   */
  public static String close_park_edit_put = API + "/api/c/closures";





















}

